﻿package code.main.view.components{
    import code.app.AppFont;
    
    import com.yy.ui.controls.Label;
    import com.yy.ui.controls.LabelButton;
    
    import flash.text.*;

    public class SimpleToolTip extends ToolTip {

        private var _label:Label;
        private var _text:String = "";

        public function SimpleToolTip(){
            this.height = 28;
//            this._label = new Label("", AppFont.createAffirmatoryFont(14, true, false, false, TextFormatAlign.CENTER), 3);
            this._label = new Label("", null, 3);
            this._label.textColor = 0x333333;
            this._label.height = 25;
            this._label.width = 25;
            this._label.x = 6;
            addChild(this._label);
        }
        public function get text():String{
            return (this._text);
        }
        public function set text(_arg1:String):void{
            this._text = _arg1;
            this._label.widthAuto = true;
            this._label.text = _arg1;
            this.width = (this._label.width + 12);
        }
        override public function show(_arg1:Object, _arg2:String="", _arg3:String="down", _arg4:Object=null):void{
            this.text = _arg2;
            super.show(_arg1, _arg2, _arg3, _arg4);
        }

    }
}